/*
 *  Copyright (C) 2015 The yuhaiyang Android Source Project
 *
 *  Licensed under the yuhaiyang License, (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       https://coding.net/yuhaiyang/License.git
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *  @author: y.haiyang@qq.com
 *
 */

package com.yuhaiyang.xmlparser;

import com.yuhaiyang.utils.Utils;

public class Book {
    private int id;
    private String name;
    private float price;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        String book = Utils.plusString("name:", name, Utils.NEW_LINE);
        book = Utils.plusString(book,"id:", String.valueOf(id), Utils.NEW_LINE);
        book = Utils.plusString(book,"price:", String.valueOf(price));
        return book;
    }
}
